D i s m + +  _SǏz-NO(uv NN _n{|^cCg
 
 
 
 
 
 
 
 
 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 D i r e c t U I   -   U I   L i b r a r y 
 
 
 
 W r i t t e n   b y   B j a r k e   V i k s o e   ( b j a r k e @ v i k s o e . d k ) 
 
 C o p y r i g h t   ( c )   2 0 0 6 - 2 0 0 7   B j a r k e   V i k s o e . 
 
 
 
 T h i s   c o d e   m a y   b e   u s e d   i n   c o m p i l e d   f o r m   i n   a n y   w a y   y o u   d e s i r e .   T h e s e 
 
 s o u r c e   f i l e s   m a y   b e   r e d i s t r i b u t e d   b y   a n y   m e a n s   P R O V I D I N G   i t   i s   
 
 n o t   s o l d   f o r   p r o f i t   w i t h o u t   t h e   a u t h o r s   w r i t t e n   c o n s e n t ,   a n d   
 
 p r o v i d i n g   t h a t   t h i s   n o t i c e   a n d   t h e   a u t h o r s   n a m e   i s   i n c l u d e d .   
 
 
 
 T h i s   f i l e   i s   p r o v i d e d   " a s   i s "   w i t h   n o   e x p r e s s e d   o r   i m p l i e d   w a r r a n t y . 
 
 T h e   a u t h o r   a c c e p t s   n o   l i a b i l i t y   i f   i t   c a u s e s   a n y   d a m a g e   t o   y o u   o r   y o u r 
 
 c o m p u t e r   w h a t s o e v e r .   I t ' s   f r e e ,   s o   d o n ' t   h a s s l e   m e   a b o u t   i t . 
 
 B e w a r e   o f   b u g s . 
 
 
 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 D u i L i b   C o p y r i g h t 
 
 
 
 C o p y r i g h t   ( c )   2 0 1 0 - 2 0 1 1 ,   d u i l i b   d e v e l o p   t e a m ( h t t p s : g i t h u b . c o m / d u i l i b / d u i l i b ) . A l l   r i g h t s   r e s e r v e d . 
 
         R e d i s t r i b u t i o n   a n d   u s e   i n   s o u r c e   a n d   b i n a r y   f o r m s ,   w i t h   o r   w i t h o u t   m o d i f i c a t i o n ,   a r e   p e r m i t t e d   p r o v i d e d   t h a t   t h e   f o l l o w i n g   c o n d i t i o n s   a r e   m e t . 
 
         R e d i s t r i b u t i o n s   o f   s o u r c e   c o d e   m u s t   r e t a i n   t h e   a b o v e   c o p y r i g h t   n o t i c e ,   t h i s   l i s t   o f   c o n d i t i o n s   a n d   t h e   f o l l o w i n g   d i s c l a i m e r . 
         
         R e d i s t r i b u t i o n s   i n   b i n a r y   f o r m   m u s t   r e p r o d u c e   t h e   a b o v e   c o p y r i g h t   n o t i c e ,   t h i s   l i s t   o f   c o n d i t i o n s   a n d   t h e   f o l l o w i n g   d i s c l a i m e r   i n   t h e   d o c u m e n t a t i o n   a n d / o r   o t h e r   m a t e r i a l s   p r o v i d e d   w i t h   t h e   d i s t r i b u t i o n . 
 
 T H I S   S O F T W A R E   I S   P R O V I D E D   B Y   T H E   C O P Y R I G H T   H O L D E R S   A N D   C O N T R I B U T O R S   " A S   I S "   A N D   A N Y   E X P R E S S   O R   I M P L I E D   W A R R A N T I E S ,   I N C L U D I N G ,   B U T   N O T   L I M I T E D   T O ,   T H E   I M P L I E D   W A R R A N T I E S   O F   M E R C H A N T A B I L I T Y   A N D   F I T N E S S   F O R   A   P A R T I C U L A R   P U R P O S E   A R E   D I S C L A I M E D .   I N   N O   E V E N T   S H A L L   T H E   C O P Y R I G H T   H O L D E R   O R   C O N T R I B U T O R S   B E   L I A B L E   F O R   A N Y   D I R E C T ,   I N D I R E C T ,   I N C I D E N T A L ,   S P E C I A L ,   E X E M P L A R Y ,   O R   C O N S E Q U E N T I A L   D A M A G E S   ( I N C L U D I N G ,   B U T   N O T   L I M I T E D   T O ,   P R O C U R E M E N T   O F   S U B S T I T U T E   G O O D S   O R   S E R V I C E S ;   L O S S   O F   U S E ,   D A T A ,   O R   P R O F I T S ;   O R   B U S I N E S S   I N T E R R U P T I O N )   H O W E V E R   C A U S E D   A N D   O N   A N Y   T H E O R Y   O F   L I A B I L I T Y ,   W H E T H E R   I N   C O N T R A C T ,   S T R I C T   L I A B I L I T Y ,   O R   T O R T   ( I N C L U D I N G   N E G L I G E N C E   O R   O T H E R W I S E )   A R I S I N G   I N   A N Y   W A Y   O U T   O F   T H E   U S E   O F   T H I S   S O F T W A R E ,   E V E N   I F   A D V I S E D   O F   T H E   P O S S I B I L I T Y   O F   S U C H   D A M A G E . 
 
 
 
 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 M e m o r y   D L L   l o a d i n g   c o d e 
 
 
 
 T h e   I n i t i a l   D e v e l o p e r   o f   t h e   O r i g i n a l   C o d e   i s   J o a c h i m   B a u c h . 
 
 
 
 P o r t i o n s   c r e a t e d   b y   J o a c h i m   B a u c h   a r e   C o p y r i g h t   ( C )   2 0 0 4 - 2 0 1 5 
 
 J o a c h i m   B a u c h .   A l l   R i g h t s   R e s e r v e d . 
 
 
 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 z l i b 
 
 
 
 z l i b . h   - -   i n t e r f a c e   o f   t h e   ' z l i b '   g e n e r a l   p u r p o s e   c o m p r e s s i o n   l i b r a r y 
 
   v e r s i o n   1 . 1 . 3 ,   J u l y   9 t h ,   1 9 9 8 
 
 
 
   C o p y r i g h t   ( C )   1 9 9 5 - 1 9 9 8   J e a n - l o u p   G a i l l y   a n d   M a r k   A d l e r 
 
 
 
   T h i s   s o f t w a r e   i s   p r o v i d e d   ' a s - i s ' ,   w i t h o u t   a n y   e x p r e s s   o r   i m p l i e d 
 
   w a r r a n t y .     I n   n o   e v e n t   w i l l   t h e   a u t h o r s   b e   h e l d   l i a b l e   f o r   a n y   d a m a g e s 
 
   a r i s i n g   f r o m   t h e   u s e   o f   t h i s   s o f t w a r e . 
 
 
 
   P e r m i s s i o n   i s   g r a n t e d   t o   a n y o n e   t o   u s e   t h i s   s o f t w a r e   f o r   a n y   p u r p o s e , 
 
   i n c l u d i n g   c o m m e r c i a l   a p p l i c a t i o n s ,   a n d   t o   a l t e r   i t   a n d   r e d i s t r i b u t e   i t 
 
   f r e e l y ,   s u b j e c t   t o   t h e   f o l l o w i n g   r e s t r i c t i o n s : 
 
 
 
   1 .   T h e   o r i g i n   o f   t h i s   s o f t w a r e   m u s t   n o t   b e   m i s r e p r e s e n t e d ;   y o u   m u s t   n o t 
 
         c l a i m   t h a t   y o u   w r o t e   t h e   o r i g i n a l   s o f t w a r e .   I f   y o u   u s e   t h i s   s o f t w a r e 
 
         i n   a   p r o d u c t ,   a n   a c k n o w l e d g m e n t   i n   t h e   p r o d u c t   d o c u m e n t a t i o n   w o u l d   b e 
 
         a p p r e c i a t e d   b u t   i s   n o t   r e q u i r e d . 
 
   2 .   A l t e r e d   s o u r c e   v e r s i o n s   m u s t   b e   p l a i n l y   m a r k e d   a s   s u c h ,   a n d   m u s t   n o t   b e 
 
         m i s r e p r e s e n t e d   a s   b e i n g   t h e   o r i g i n a l   s o f t w a r e . 
 
   3 .   T h i s   n o t i c e   m a y   n o t   b e   r e m o v e d   o r   a l t e r e d   f r o m   a n y   s o u r c e   d i s t r i b u t i o n . 
 
 
 
   J e a n - l o u p   G a i l l y                 M a r k   A d l e r 
 
   j l o u p @ g z i p . o r g                     m a d l e r @ a l u m n i . c a l t e c h . e d u 
 
 
 
 
 
   T h e   d a t a   f o r m a t   u s e d   b y   t h e   z l i b   l i b r a r y   i s   d e s c r i b e d   b y   R F C s   ( R e q u e s t   f o r 
 
   C o m m e n t s )   1 9 5 0   t o   1 9 5 2   i n   t h e   f i l e s   f t p : d s . i n t e r n i c . n e t / r f c / r f c 1 9 5 0 . t x t 
 
   ( z l i b   f o r m a t ) ,   r f c 1 9 5 1 . t x t   ( d e f l a t e   f o r m a t )   a n d   r f c 1 9 5 2 . t x t   ( g z i p   f o r m a t ) . 
 
 
 
 
 
         T h e   ' z l i b '   c o m p r e s s i o n   l i b r a r y   p r o v i d e s   i n - m e m o r y   c o m p r e s s i o n   a n d 
 
   d e c o m p r e s s i o n   f u n c t i o n s ,   i n c l u d i n g   i n t e g r i t y   c h e c k s   o f   t h e   u n c o m p r e s s e d 
 
   d a t a .     T h i s   v e r s i o n   o f   t h e   l i b r a r y   s u p p o r t s   o n l y   o n e   c o m p r e s s i o n   m e t h o d 
 
   ( d e f l a t i o n )   b u t   o t h e r   a l g o r i t h m s   w i l l   b e   a d d e d   l a t e r   a n d   w i l l   h a v e   t h e   s a m e 
 
   s t r e a m   i n t e r f a c e . 
 
 
 
         C o m p r e s s i o n   c a n   b e   d o n e   i n   a   s i n g l e   s t e p   i f   t h e   b u f f e r s   a r e   l a r g e 
 
   e n o u g h   ( f o r   e x a m p l e   i f   a n   i n p u t   f i l e   i s   m m a p ' e d ) ,   o r   c a n   b e   d o n e   b y 
 
   r e p e a t e d   c a l l s   o f   t h e   c o m p r e s s i o n   f u n c t i o n .     I n   t h e   l a t t e r   c a s e ,   t h e 
 
   a p p l i c a t i o n   m u s t   p r o v i d e   m o r e   i n p u t   a n d / o r   c o n s u m e   t h e   o u t p u t 
 
   ( p r o v i d i n g   m o r e   o u t p u t   s p a c e )   b e f o r e   e a c h   c a l l . 
 
 
 
         T h e   l i b r a r y   a l s o   s u p p o r t s   r e a d i n g   a n d   w r i t i n g   f i l e s   i n   g z i p   ( . g z )   f o r m a t 
 
   w i t h   a n   i n t e r f a c e   s i m i l a r   t o   t h a t   o f   s t d i o . 
 
 
 
         T h e   l i b r a r y   d o e s   n o t   i n s t a l l   a n y   s i g n a l   h a n d l e r .   T h e   d e c o d e r   c h e c k s 
 
   t h e   c o n s i s t e n c y   o f   t h e   c o m p r e s s e d   d a t a ,   s o   t h e   l i b r a r y   s h o u l d   n e v e r 
 
   c r a s h   e v e n   i n   c a s e   o f   c o r r u p t e d   i n p u t . 
 
 
 
 f o r   m o r e   i n f o   a b o u t   . Z I P   f o r m a t ,   s e e   f t p : f t p . c d r o m . c o m / p u b / i n f o z i p / d o c / a p p n o t e - 9 7 0 3 1 1 - i z . z i p 
 
     P k W a r e   h a s   a l s o   a   s p e c i f i c a t i o n   a t   f t p : f t p . p k w a r e . c o m / p r o b d e s c . z i p 
 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 r a p i d x m l 
 
 
 
 h t t p : / / r a p i d x m l . s o u r c e f o r g e . n e t / 
 
 
 
 R a p i d X m l   i s   a n   a t t e m p t   t o   c r e a t e   t h e   f a s t e s t   X M L   p a r s e r   p o s s i b l e ,   w h i l e   r e t a i n i n g   u s e a b i l i t y ,   p o r t a b i l i t y   a n d   r e a s o n a b l e   W 3 C   c o m p a t i b i l i t y .   I t   i s   a n   i n - s i t u   p a r s e r   w r i t t e n   i n   m o d e r n   C + + ,   w i t h   p a r s i n g   s p e e d   a p p r o a c h i n g   t h a t   o f   s t r l e n   f u n c t i o n   e x e c u t e d   o n   t h e   s a m e   d a t a .   
 
 
 
 R a p i d X m l   h a s   b e e n   a r o u n d   s i n c e   2 0 0 6 ,   a n d   i s   b e i n g   u s e d   b y   l o t s   o f   p e o p l e .   H T C   u s e s   i t   i n   s o m e   o f   i t s   m o b i l e   p h o n e s .   
 
 
 
 I f   y o u   a r e   l o o k i n g   f o r   a   s t a b l e   a n d   f a s t   p a r s e r ,   l o o k   n o   f u r t h e r .   I n t e g r a t i o n   w i t h   y o u r   p r o j e c t   w i l l   b e   t r i v i a l ,   b e c a u s e   e n t i r e   l i b r a r y   i s   c o n t a i n e d   i n   a   s i n g l e   h e a d e r   f i l e ,   a n d   r e q u i r e s   n o   b u i l d i n g   o r   c o n f i g u r a t i o n .   
 
 
 
 C u r r e n t   v e r s i o n   i s   R a p i d X m l   1 . 1 3 .   A l s o   a v a i l a b l e   i s   i t s   o n l i n e   M a n u a l   w i t h   a   f u l l   a n d   d e t a i l e d   r e f e r e n c e .   Y o u   m a y   a l s o   l i k e   t o   c h e c k   B o o s t . P r o p e r t y T r e e   l i b r a r y ,   w h i c h   p r e s e n t s   a   h i g h e r   l e v e l   i n t e r f a c e ,   a n d   u s e s   R a p i d X m l   a s   i t s   d e f a u l t   X M L   p a r s e r .   
 
 
 
 T h e   a u t h o r   o f   R a p i d X m l   i s   M a r c i n   K a l i c i n s k i .   
 
 
 
 
 
 C o p y r i g h t     2 0 0 6 ,   2 0 0 9   M a r c i n   K a l i c i n s k i   ( k a l i t a   a t   p o c z t a   d o t   o n e t   d o t   p l ) 
 
 
 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 M s I s o R e a d e r 
 
 
 
 _ov N*N _nI S O ^:ND i s m + + cOI S O S/ec0
 
 
 
 